package com.kylin.domain.oauth2.social.jwt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年12月01日 23:05
 */
@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public final class JwtSecurityProperties {
    private String header;
    private String secret;
    private String issuer;
    private String audience;
    private Integer expiresIn;

    public String getStartWith() {
        return "Bearer ";
    }
}
